package com.ytc.mapper;

import com.ytc.model.Bookhistory;
import org.apache.ibatis.annotations.Param;

/**
* @author 25645
* @description 针对表【my_bookhistory】的数据库操作Mapper
* @createDate 2023-01-13 11:27:47
* @Entity com.ytc.model.Bookhistory
*/
public interface BookhistoryMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Bookhistory record);

    int insertSelective(Bookhistory record);

    Bookhistory selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Bookhistory record);

    int updateByPrimaryKey(Bookhistory record);

    //张阔：查询历史记录
    Integer queryBhByUidAndBlid(@Param("uId") Integer uId, @Param("blId") Integer blId);

    //张阔：新增历史记录
    void addHistory(@Param("uid") Integer uid, @Param("bid") Integer bid, @Param("cid") Integer cid);

    //张阔：修改历史记录
    void updateHistory(@Param("uid") Integer uid, @Param("bid") Integer bid, @Param("cid") Integer cid);
}
